package com.jobs.producer0.controller;

import com.jobs.common.RS;
import com.jobs.producer0.config.ConnectionConfig;
import com.jobs.producer0.service.DemoService;
import com.rabbitmq.client.BuiltinExchangeType;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.nio.charset.Charset;
import java.util.concurrent.TimeoutException;


/**
 * 简单模式
 * @author xxx
 */
@RestController
@RequestMapping("/simple")
public class SimpleTypeController {

    @Autowired
    private DemoService demoService;
    @GetMapping("/test")
    public String demo() {
        return RS.success(demoService.demo());
    }

}
